package dk.pekilidi.dod;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

/**
 * User: msp
 * Date: Mar 19, 2008
 * Time: 12:37:48 PM
 */
public class Item extends BaseObject implements Serializable {

    private double cost;
    private int orgBreakingValue;
    private int currentBreakingValue;
    private long skillId;
    private long beingId;
    private String damage;
    private int absorptionPoints;

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public int getOrgBreakingValue() {
        return orgBreakingValue;
    }

    public void setOrgBreakingValue(int orgBreakingValue) {
        this.orgBreakingValue = orgBreakingValue;
    }

    public int getCurrentBreakingValue() {
        return currentBreakingValue;
    }

    public void setCurrentBreakingValue(int currentBreakingValue) {
        this.currentBreakingValue = currentBreakingValue;
    }

    public long getSkillId() {
        return skillId;
    }

    public void setSkillId(long skillId) {
        this.skillId = skillId;
    }

    public long getBeingId() {
        return beingId;
    }

    public void setBeingId(long beingId) {
        this.beingId = beingId;
    }

    public String getDamage() {
        return damage;
    }

    public void setDamage(String damage) {
        this.damage = damage;
    }

    public int getAbsorptionPoints() {
        return absorptionPoints;
    }

    public void setAbsorptionPoints(int absorptionPoints) {
        this.absorptionPoints = absorptionPoints;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).
                append("cost", cost).
                append("orgBreakingValue", orgBreakingValue).
                append("currentBreakingValue", currentBreakingValue).
                append("skillId", skillId).
                append("beingId", beingId).
                append("damage", damage).
                append("absorptionPoints", absorptionPoints).
                toString();
    }
}
